package ClassHomeworkTest;

public class Customer {
    private String name;
    private Account account;
    public Customer(){

    }
    public Customer(String name,Account account){
        this.name = name;
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }
    @Override
    public String toString(){
        return "Customer ["+this.name+"] has a account ：id is "+this.account.getId()+
                " annualInterestRate is "+this.account.getAnnualInterestRate()+" balance is "
                +this.account.getBalance();
    }
}
